package com.rinlink.gateway.jt808.exception;

import org.springframework.http.HttpStatus;

import java.net.URI;

public class WebHookPostResponseException extends WebHooPostException{

    private HttpStatus httpStatus;

    public WebHookPostResponseException(URI uri,Object content, HttpStatus statusCode) {
        super(uri,content);
        this.httpStatus = statusCode;
    }

    @Override
    public String getMessage() {
        return String.format("Status: %d, %s",httpStatus.value(),super.getMessage());
    }
}
